<?php
namespace app\common\enum;

class Status extends Base
{
	protected static $options = [0 => '隐藏', 1 => '显示', -2 => '已删除'];

    // 表名
    //protected $name = 'zp_status';

    public static function isShow($status) {
    	return $status === 1;
    }

    public static function isHide($status) {
        return $status === 0;
    }

    public static function showStatus() {
    	return 1;
    }

    public static function hideStatus() {
        return 0;
    }

    public static function delStatus() {
        return -1;
    }

    public static function showText($key) {
        return static::$options[$key];
    }


}